package kasgroup2;

import java.util.Date;

class Activity {

    private String name;
    private String place;
    private Date startTime;
    private Date endTime;
    private double price;
    private String comment;
    
    /*public Activity(String p_Name, String p_Place, double p_Price, String p_Comment) {
        this.startTime = new Date();
        this.endTime = new Date();
    }*/

    public Activity(String p_Name, String p_Place, double p_Price, String p_Comment, Date p_StartTime, Date p_EndTime) {
        //this(p_Name, p_Place, p_Price, p_Comment);
        this.name = p_Name;
        this.place = p_Place;
        this.price = p_Price;
        this.comment = p_Comment;
        this.startTime = p_StartTime;
        this.endTime = p_EndTime;
    }
    
    public String getName() {
        return name;
    }

    public String getPlace() {
        return place;
    }

    public Date getStartTime() {
        return startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public double getPrice() {
        return price;
    }

    public String getComment() {
        return comment;
    }
    
    public void setName(String n) {
        name = n;
    }

    public void setStartTime(String newFrom) {
        this.startTime = CoreHandler.StringToDate(newFrom);
    }
    
    public void setEndTime(String newEnd) {
        this.endTime = CoreHandler.StringToDate(newEnd);
    }

    public void setPlace(String newPlace) {
        this.place = newPlace;
    }

    public void setPrice(Double newPrice) {
        this.price = newPrice;
    }

    public void setComment(String newComment) {
        this.comment = newComment;
    }
}
